package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 主页轮播图
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_index_img")
@Schema(name = "TzIndexImg", description = "主页轮播图")
public class TzIndexImg implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "img_id", type = IdType.AUTO)
    private Long imgId;

    @Schema(description = "店铺ID")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "图片")
    @TableField("img_url")
    private String imgUrl;

    @Schema(description = "说明文字,描述")
    @TableField("des")
    private String des;

    @Schema(description = "标题")
    @TableField("title")
    private String title;

    @Schema(description = "链接")
    @TableField("link")
    private String link;

    @Schema(description = "状态")
    @TableField("status")
    private Boolean status;

    @Schema(description = "顺序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "上传时间")
    @TableField("upload_time")
    private LocalDateTime uploadTime;

    @Schema(description = "关联")
    @TableField("relation")
    private Long relation;

    @Schema(description = "类型")
    @TableField("type")
    private Integer type;
}
